package com.taotao.web.service;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import com.fasterxml.jackson.databind.ObjectMapper;

@Service
public class PropertieService {
	@Value("${TT_MANAGE_URL}") // 后台系统域名
	public String TT_MANAGE_URL;
	@Value("${TT_MANAGE_AD1_URL}")// 后台系统大广告查询接口
	public String TT_MANAGE_AD1_URL;
	@Value("${TT_MANAGE_AD2_URL}")// 右上角小广告查询接口
	public String TT_MANAGE_AD2_URL;
	
	@Value("${TT_MANAGE_ITEM}")//后台商品查询接口
	public String TT_MANAGE_ITEM;
	
	@Value("${TT_MANAGE_ITEMDESC}")
	public String TT_MANAGE_ITEMDESC;//后台商品详情查询接口
	
	@Value("${TAOTAO_WEB_JEDISCACHED_ITEMKEY}")
	public String TAOTAO_WEB_JEDISCACHED_ITEMKEY;//前台redis中商品的key
	
	@Value("${TAOTAO_WEB_JEDISCACHED_ITEMDESCKEY}")
	public String TAOTAO_WEB_JEDISCACHED_ITEMDESCKEY;//前台redis中商品详情的key
	
	@Value("${TAOTAO_WEB_JEDISCACHED_ITEMLIVE}")
	public int TAOTAO_WEB_JEDISCACHED_ITEMLIVE;//前台redis中商品的存活时间
	
	@Value("${TAOTAO_WEB_JEDISCACHED_ITEMDESCLIVE}")
	public int TAOTAO_WEB_JEDISCACHED_ITEMDESCLIVE;//前台redis中商品详情的存活时间
	
	public static final ObjectMapper MAPPER = new ObjectMapper();
	
}
